package Practice02;

public class test4 {
    public static void main(String[] args) {

        for (int i = 0; i < 20; i++) {//公鸡
            for (int j = 0; j < 34; j++) {//母鸡
                for (int k = 0; k < 100; k++) {//小鸡
                    if (i * 5 + j * 3 + k == 100 && i + j + k * 3 == 100){
                        System.out.println("公鸡:"+i+"; 母鸡:" +j+ "; 小鸡:" +k);
                    }
                }
            }
        }
    }
}
